home *** CD-ROM | disk | FTP | other *** search
- Path: nuscc.nus.sg!eng50442
- From: eng50442@leonis.nus.sg (Yeo Whui Mei)
- Newsgroups: comp.lang.c++
- Subject: What's GP Exception in BC4.5?
- Date: 29 Mar 1996 17:10:12 GMT
- Organization: National University of Singapore
- Message-ID: <4jh5hk$k6f@nuscc.nus.sg>
- NNTP-Posting-Host: eng50442@leonis.nus.sg
- X-Newsreader: TIN [version 1.2 PL2]
-
- Hi all!
-
- I'm a newbie to C programming so if you know what my problem below refers
- to, pls explain in layman's term.
-
- I was trying to do this question in which a list of countries and their
- capitals are given and the user is supposed to type in the country name,
- and the program will return the name of the capital. This action will be
- terminated by 'END'.
-
- I did my question on Borland C++4.5. I initialised two arrays with the
- country names and capital names using array of pointers. The compilier
- compiled
- successfully. I typed in the input and hit the 'return' key, and then
- and error dialog box appeared which goes like this:
-
- General Protection Exception
- 0x0CCF:0x22FB
- COUNTRY (1) 0x0CCF:022FB Processor
- Fault
-
- I check my event log also and this is what gives:
-
- breakpoint at 0x0CCF:0056: country.exe begin execution at
- COUNTRY.CPP 12, task handle 0x0E76
-
- Btw, COUNTRY is the name of the file.
-
- If any of you out there knows what's wrong, please reply to me at my
- email add ASAP. I would appreciate the prompt reply.
-
- Thank you.
-
- Regards
- Whui Mei
-